package com.njym.java.security.app.mapper;


import com.njym.java.security.app.entity.CirclePost;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-07 14:35:47
 */

public interface CirclePostMapper extends Mapper<CirclePost> {

	void addLike(@Param("id") int id);

	void addRead(@Param("id") int id);

	void addComment(@Param("id") int id);

	/**
	 * 审核
	 * @param userId
	 * @return
	 */
	List<CirclePost> toExamine(@Param("userId") Integer userId);

	/**
	 * 发布
	 * @param userId
	 * @return
	 */
	List<CirclePost> release(@Param("userId") Integer userId);

	int countMyPost(@Param("invisible") Integer invisible,@Param("userId") Integer userId);
}
